<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>企业复盘易 - 快速分析企业问题并提供解决方案</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.1/font/bootstrap-icons.css">
    <style>
        body {
            font-family: 'Microsoft YaHei', sans-serif;
            background-color: #f8f9fa;
        }
        .header {
            background: linear-gradient(135deg, #3498db, #2c3e50);
            color: white;
            padding: 2rem 0;
            border-bottom: 5px solid #f39c12;
        }
        .card {
            border-radius: 10px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            transition: transform 0.3s;
            margin-bottom: 1.5rem;
            border: none;
        }
        .card:hover {
            transform: translateY(-5px);
        }
        .category-card {
            cursor: pointer;
        }
        .category-icon {
            font-size: 2.5rem;
            margin-bottom: 1rem;
        }
        .tag {
            display: inline-block;
            padding: 0.25rem 0.5rem;
            background-color: #e9ecef;
            border-radius: 20px;
            font-size: 0.85rem;
            margin-right: 0.5rem;
            margin-bottom: 0.5rem;
        }
        .tag-it { background-color: #d1ecf1; color: #0c5460; }
        .tag-sales { background-color: #d4edda; color: #155724; }
        .tag-finance { background-color: #fff3cd; color: #856404; }
        .tag-hr { background-color: #f8d7da; color: #721c24; }
        .tag-operations { background-color: #e2e3e5; color: #383d41; }
        footer {
            background-color: #2c3e50;
            color: white;
            padding: 2rem 0;
            margin-top: 3rem;
        }
    </style>
</head>
<body>
    <!-- 头部 -->
    <header class="header text-center">
        <div class="container">
            <h1><i class="bi bi-graph-up-arrow"></i> 企业复盘易</h1>
            <p class="lead">快速定位问题、分析问题、提供解决方案</p>
        </div>
    </header>

    <!-- 主要内容 -->
    <div class="container py-5">
        <!-- 功能介绍 -->
        <section class="mb-5">
            <div class="row">
                <div class="col-md-4 mb-4">
                    <div class="card h-100">
                        <div class="card-body text-center">
                            <i class="bi bi-search category-icon text-primary"></i>
                            <h3>问题定位</h3>
                            <p>快速定位企业运营中的关键问题点</p>
                        </div>
                    </div>
                </div>
                <div class="col-md-4 mb-4">
                    <div class="card h-100">
                        <div class="card-body text-center">
                            <i class="bi bi-bar-chart category-icon text-success"></i>
                            <h3>深度分析</h3>
                            <p>多维度分析问题成因，找出问题根本原因</p>
                        </div>
                    </div>
                </div>
                <div class="col-md-4 mb-4">
                    <div class="card h-100">
                        <div class="card-body text-center">
                            <i class="bi bi-lightbulb category-icon text-warning"></i>
                            <h3>解决方案</h3>
                            <p>提供针对性的解决方案建议，帮助企业应对挑战</p>
                        </div>
                    </div>
                </div>
            </div>
        </section>

        <!-- 问题类别选择 -->
        <section class="mb-5">
            <h2 class="text-center mb-4">选择问题类别</h2>
            <div class="row">
                <div class="col-md-4 mb-4">
                    <div class="card category-card h-100" data-category="it">
                        <div class="card-body text-center">
                            <i class="bi bi-pc-display category-icon text-primary"></i>
                            <h3>IT类问题</h3>
                            <p>系统故障、网络安全、数据丢失、软件开发等问题</p>
                            <div class="mt-3">
                                <span class="tag tag-it">系统故障</span>
                                <span class="tag tag-it">网络安全</span>
                                <span class="tag tag-it">数据丢失</span>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="col-md-4 mb-4">
                    <div class="card category-card h-100" data-category="sales">
                        <div class="card-body text-center">
                            <i class="bi bi-cart-check category-icon text-success"></i>
                            <h3>销售类问题</h3>
                            <p>销售业绩下滑、客户流失、市场竞争等问题</p>
                            <div class="mt-3">
                                <span class="tag tag-sales">业绩下滑</span>
                                <span class="tag tag-sales">客户流失</span>
                                <span class="tag tag-sales">市场竞争</span>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="col-md-4 mb-4">
                    <div class="card category-card h-100" data-category="finance">
                        <div class="card-body text-center">
                            <i class="bi bi-cash-coin category-icon text-warning"></i>
                            <h3>财务类问题</h3>
                            <p>现金流紧张、成本控制、财务风险等问题</p>
                            <div class="mt-3">
                                <span class="tag tag-finance">现金流</span>
                                <span class="tag tag-finance">成本控制</span>
                                <span class="tag tag-finance">财务风险</span>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </section>

        <!-- 问题详情表单 -->
        <section id="problemDetailSection" class="mb-5" style="display: none;">
            <div class="card">
                <div class="card-header bg-primary text-white">
                    <h3 class="mb-0" id="selectedCategoryTitle">问题详情</h3>
                </div>
                <div class="card-body">
                    <form id="problemForm">
                        <div class="mb-3">
                            <label for="problemTitle" class="form-label">问题标题</label>
                            <input type="text" class="form-control" id="problemTitle" placeholder="请简要描述您的问题">
                        </div>
                        <div class="mb-3">
                            <label for="problemDescription" class="form-label">问题详细描述</label>
                            <textarea class="form-control" id="problemDescription" rows="5" placeholder="请详细描述您遇到的问题"></textarea>
                        </div>
                        <div class="mb-3">
                            <label for="problemSeverity" class="form-label">问题严重程度</label>
                            <select class="form-select" id="problemSeverity">
                                <option value="low">轻微（对业务几乎没有影响）</option>
                                <option value="medium">中等（对业务有一定影响）</option>
                                <option value="high">严重（对业务有重大影响）</option>
                                <option value="critical">危机（对业务造成致命打击）</option>
                            </select>
                        </div>
                        <div class="text-center">
                            <button type="button" class="btn btn-secondary me-2" id="backToCategories">返回</button>
                            <button type="button" class="btn btn-primary" id="analyzeBtn">开始分析</button>
                        </div>
                    </form>
                </div>
            </div>
        </section>

        <!-- 加载中 -->
        <div id="loadingSection" class="text-center py-5" style="display: none;">
            <div class="spinner-border text-primary" role="status">
                <span class="visually-hidden">加载中...</span>
            </div>
            <h3 class="mt-3">正在分析问题，请稍候...</h3>
        </div>

        <!-- 分析结果 -->
        <section id="analysisResultSection" style="display: none;">
            <div class="card mb-4">
                <div class="card-header bg-primary text-white">
                    <h3 class="mb-0">问题分析报告</h3>
                </div>
                <div class="card-body">
                    <h4 class="mb-3">问题概述</h4>
                    <div class="alert alert-secondary">
                        <h5 id="resultProblemTitle">问题标题</h5>
                        <p id="resultProblemDescription">问题描述</p>
                        <div class="d-flex">
                            <div class="me-4">
                                <strong>问题类别：</strong>
                                <span id="resultProblemCategory">IT类</span>
                            </div>
                            <div>
                                <strong>严重程度：</strong>
                                <span id="resultProblemSeverity">中等</span>
                            </div>
                        </div>
                    </div>

                    <h4 class="mb-3 mt-4">问题分析</h4>
                    <div class="mb-4" id="analysisChart" style="height: 300px; background-color: #f8f9fa;">
                        <!-- 图表将在这里显示 -->
                    </div>
                    <div id="rootCauseAnalysis">
                        <h5>根本原因分析</h5>
                        <div class="card mb-3">
                            <div class="card-body" id="rootCauseContent">
                                <!-- 根本原因分析内容 -->
                            </div>
                        </div>
                    </div>

                    <h4 class="mb-3 mt-4">解决方案建议</h4>
                    <div id="solutionsContainer">
                        <!-- 解决方案将在这里显示 -->
                    </div>

                    <div class="text-center mt-4">
                        <button class="btn btn-primary me-2" id="downloadReportBtn">下载报告</button>
                        <button class="btn btn-success" id="newAnalysisBtn">新的分析</button>
                    </div>
                </div>
            </div>
        </section>
    </div>

    <!-- 页脚 -->
    <footer>
        <div class="container">
            <div class="row">
                <div class="col-md-6">
                    <h4>企业复盘易</h4>
                    <p>帮助企业快速定位问题、分析问题并提供解决方案的智能工具</p>
                </div>
                <div class="col-md-3">
                    <h5>功能</h5>
                    <ul class="list-unstyled">
                        <li><a href="#" class="text-white">问题定位</a></li>
                        <li><a href="#" class="text-white">深度分析</a></li>
                        <li><a href="#" class="text-white">解决方案</a></li>
                    </ul>
                </div>
                <div class="col-md-3">
                    <h5>联系我们</h5>
                    <ul class="list-unstyled">
                        <li><a href="#" class="text-white">关于我们</a></li>
                        <li><a href="#" class="text-white">帮助中心</a></li>
                    </ul>
                </div>
            </div>
            <hr class="bg-white">
            <div class="text-center">
                <p>&copy; 2023 企业复盘易 版权所有</p>
            </div>
        </div>
    </footer>

    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/chart.js@3.7.1/dist/chart.min.js"></script>
    <script src="enterprise-review.js"></script>
</body>
</html>